<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <script src="https://unpkg.com/react@17/umd/react.development.js"></script>
  <script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
  <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>

  <body>
    <div id="root"></div>
    <script type="text/babel">
    // 函数式组件（无状态组件）
    // function Hello() {
    //   return <h1>Hello, React!</h1>;
    //   }
    function Hello(props) {
      return <div>
        <h1>Hello,liuzhiting</h1>
        <p>姓名：{props.name}</p>
        <p>年龄：{props.age}</p>
        <p>性别：{props.sex} </p>
        <p>擅长：cv大法</p>
        </div>
    }
      ReactDOM.render(<Hello name='流支厅' age='18' sex='男'/>, document.getElementById("root"));
    </script>
  </body>
</html>
